#!/usr/bin/env python
#coding=utf8
#数组内容不固定
#由用户输入数组的内容

print "Please input 10 numbers:"

array=[input("input numbers:") for  x in range(10)]
print array

for i in range(10):
	for j in range(9-i):
		if(array[j]>array[j+1]):
			temp=array[j+1]
			array[j+1]=array[j]
			array[j]=temp
print "sorted numbers:"
print array

		
	
